<%@ page language="java" import="java.util.*" import="vo.User" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="css/amazeui.min.css">
    <link rel="stylesheet" href="css/petshow.css?6">
    <link rel="stylesheet" href="css/animate.min.css">
<title>Insert title here</title>
<style>
#container{
background-image:url(img/bg1.jpg);
background-size:100% 100%;
	background-attachment: fixed;
	color:white;
	font-size:22px;
}
#td{
padding-top:200px;
padding-bottom:230px;
}
</style>
</head>
<body>
<div id="container">
<%
String info=(String)request.getAttribute("info");
if(info!=null){
	out.println(info);
}

User user=(User)session.getAttribute("user");//获得session
if(user!=null){
	request.getSession().setAttribute("user", user);
	request.getRequestDispatcher("shops.jsp").forward(request, response);
%>
<div id="td">
<table align="center" width="350"  height="200" >
<tr>
<td align="center" colspan="2">

<span><%=user.getUname() %></span>
 ，恭喜您，登录成功！
 <br>3秒后即将进入食否首页...
</td>
</tr>
</table>
<script> window.setInterval("location='shops.jsp'",3000); </script> 

</div>
<%
}else{
	out.println("<br>三秒后即将回到登录界面...");
}
%>
<script> window.setInterval("location='index.jsp'",3000); </script> 
</div>
<footer class="am_footer">
<div class="am_footer_con">
<div class="am_footer_link">
<span>关于食否</span>
<ul>
  <li><a href="###">关于我们</a></li>
  <li><a href="###">发展历程</a></li>
  <li><a href="###">友情链接</a></li>
</ul>
</div>


<div class="am_footer_don">
<span>食否</span>
<dl>
  <dt><img src="img/foodLogo.jpg?1" alt=""></dt>
  <dd>为您提供各类美食网上订餐服务，覆盖周边100余家餐厅，中餐、西餐、美食小吃、快餐、火锅、川菜应有尽有，不用出门即可享受各地区各种类美食！
  <a href="###" class="footdon_pg "><div class="foot_d_pg am-icon-apple ">  App store</div></a><a href="###" class="footdon_az animated"><div class="foot_d_az am-icon-android ">  Android</div></a></dd>

</dl>
</div>

<div class="am_footer_erweima">
<div class="am_footer_weixin"><img src="img/wx2.jpg" alt=""><div class="am_footer_d_gzwx am-icon-weixin"> 关注微信</div></div>
<div class="am_footer_ddon"><img src="img/wx.jpg" alt=""><div class="am_footer_d_dxz am-icon-cloud-download"> 扫码下载</div></div>

</div>

</div>
<div class="am_info_line">Copyright(c)2017 <span>ShiFou</span> All Rights Reserved </div>
</footer>
</body>
</html>